package com.hibase.core.rule.entity.ruletable.query;

import com.hibase.core.web.annotation.HibaseValid;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotBlank;
import org.hibernate.validator.constraints.NotEmpty;

import java.util.Map;

/**
 * 描述:
 *
 * @author li-wei-hua
 * @date 2020-04-10 9:34
 */
@Data
@HibaseValid
@ApiModel(value = "RuleTableDataChangeVO",description = "动态表页面添加数据对象")
public class RuleTableDataChangeVO {

    @ApiModelProperty(value = "表名")
    @NotBlank(message = "表名不能为空")
    private String tableName;

    @ApiModelProperty(value = "id")
    private String id;

    @ApiModelProperty(value = "version表ID")
    private String ruleTableVersionId;

    @ApiModelProperty(value = "数据json")
    @NotEmpty(message = "数据不能为空")
   Map<String,String> dataList;

}
